import request from '/@/utils/request';

// 列表
export function RiskPluginTypeGetPagedList(params?: object) {
	return request({
		url: '/api/RiskPluginType/GetPagedList',
		params,
	});
}

// 新增
export function RiskPluginTypeCreate(data: any) {
	return request({
		url: 'api/RiskPluginType/Create',
		method: 'post',
		data,
	});
}
// 编辑
export function RiskPluginTypeUpdate(data: any, id: string) {
	return request({
		url: `api/RiskPluginType/Update/${id}`,
		method: 'put',
		data,
	});
}

// 删除
export function BatchDelete(data: any) {
	return request({
		url: 'api/RiskPluginType/BatchDelete',
		method: 'post',
		data,
	});
}
// 根据Id获取数据
export function RiskPluginTypeInfoId(id: string) {
	return request({
		url: `api/RiskPluginType/Get/${id}`,
	});
}
